from django.urls import path, include
from . import views
from .views import ItemViewSet
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'items', ItemViewSet)


urlpatterns = [
    path('', views.index_view, name='index'),
    path('index/', views.index_view, name='index'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('register/', views.register_view, name='register'),
    path('api/check_username/', views.check_username, name='check_username'),
    path('api/check_email/', views.check_email, name='check_email'),
    path('userinfo/', views.userinfo_view, name='userinfo'),
    path('page1/', views.page1_view, name='page1'),
    path('page2/', views.page2_view, name='page2'),
    path('page3/', views.page3_view, name='page3'),
    path('api/boss-info/', views.get_boss_info, name='get_boss_info'),
    path('api/vue3/', include(router.urls)),
]

